<ul class="faq-list J_mi_question">
    <?php if ($this->consultList->getCurrentItemCount() > 0) { ?>
        <?php foreach ($this->consultList as $consultValue) { ?>
            <li style="margin-bottom: 15px;margin-top: 15px;padding-bottom: 15px;">
                <h3 class="question">
                    <span class="icon-ques">Q</span>
                    <?php echo $consultValue[0]->getUserId() > 0 ? $this->escapeHtml($this->shopHelper()->userNameHide($consultValue[0]->getConsultUser())) : $this->escapeHtml($consultValue[0]->getConsultUser()); ?> | <?php echo date("Y-m-d H:i:s", $consultValue[0]->getConsultTime()); ?><br>
                    <?php echo nl2br($this->escapeHtml($consultValue[0]->getConsultContent())); ?>
                </h3>
                <?php if(!empty($consultValue[0]->getReplyContent())) { ?>
                    <p class="answer">
                        <span class="icon-ques icon-ans stard">A</span>
                        <?php echo $this->translate('店主'); ?> | <?php echo date("Y-m-d H:i:s", $consultValue[0]->getReplyTime()); ?><br>
                        <?php echo $this->escapeHtml($consultValue[0]->getReplyContent()); ?>
                    </p>
                <?php } ?>
            </li>
        <?php } ?>
        <li>
            <?php echo $this->paginationControl($this->consultList, 'Sliding', 'shop/ajaxPage', ['route' => 'shop-goods', 'params' => ['action' => 'goodsConsultList', 'id' => $this->goodsInfo->getGoodsId()], 'showDivId' => 'listGoodsAsk']); ?>
        </li>
    <?php } else { ?>
        <li><strong><?php echo $this->translate('该商品暂无咨询信息!'); ?></strong></li>
    <?php } ?>
</ul>